// 获取单证号
import {deepCopy} from '@/utils/tools'
import {template} from '@/components/ivew_components/car_india/dataTemplate'

export default (ctx, next) => {
    let resData = ctx.params;
    let keys = Object.keys(template);    

    // 寻找对应单证配置, 并取值    
    for(let key of keys){
        let singleItem = template[key];

        if(resData.singleType === singleItem.type){
            singleItem.serialNumber = resData.singleId;
            ctx.params = singleItem;
            break;
        }
        
    }
    
    next ()
}